@extends('Admin.layout.layout')
@section('title','修改品种信息')
@section('url','/admin/varieties/')
@section('home','品种管理')
@section('weizhi','修改品种信息')
@section('con')

<div class="panel-body">
  <div class="form">
      <form class="form-validate form-horizontal" id="feedback_form" method="post" action="{{url('/admin/varieties/insert')}}" enctype="multipart/form-data" novalidate="novalidate">
          <div class="form-group ">
              <label for="cname" class="control-label col-lg-2">品名<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                  <input class="form-control" id="cname" name="name" minlength="5" type="text" value="{{$varieties -> name}}">
              </div>
          </div>
          <div class="form-group ">
              <label for="curl" class="control-label col-lg-2">首字母<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 560px;">
                  @foreach($first as $k => $v)
                    @if($v == $varieties -> first)
                      <label><input style="margin-left: 15px;margin-top: 13px;" id="time" name="first" minlength="5" type="radio" checked="checked" value="{{$v}}">{{$v}}</label>
                    @else
                      <label><input style="margin-left: 15px;margin-top: 13px;" id="time" name="first" minlength="5" type="radio" value="{{$v}}">{{$v}}</label>
                    @endif
                  @endforeach
              </div>
          </div>
          <div class="form-group ">
              <label for="cname" class="control-label col-lg-2">品名缩写 <span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                  <input class="form-control" id="subject" name="pinyin" minlength="5" type="text" value="{{$varieties -> pinyin}}">
              </div>
          </div>  
          <div class="form-group ">
              <label for="cname" class="control-label col-lg-2">英文名 <span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                  <input class="form-control" id="subject" name="eName" minlength="5" type="text" value="{{$varieties -> eName}}">
              </div>
          </div>                                      
          <div class="form-group ">
              <label for="ccomment" class="control-label col-lg-2">别名<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                  <input class="form-control" id="subject" name="aliasName" minlength="5" type="text" value="{{$varieties -> aliasName}}">
              </div>
          </div>
          <div class="form-group">
              <label for="ccomment" class="control-label col-lg-2">药材属性<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                  <div class="properties form-control zyc" minlength="5" style="position:absolute;float: left;"></div>
                  <input class="form-control" id="properties" name="properties" type="hidden" value="">
                  <select  name="" id="ycsx" class="form-control" style="position:absolute;float: left;margin-left:320px">
                  @foreach($sx as $k => $v)
                    <option class='sx' value="">{{$v}}</option>
                  @endforeach
                  </select>
              </div>
          </div>
          <div class="form-group ">
              <label for="ccomment" class="control-label col-lg-2">产新时间<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 900px;">
                  @foreach($time as $k => $v)
                   <input style="margin-left: 15px;margin-top: 13px;" id="time" classs="time" name="time[]" minlength="5" type="checkbox" value="{{$v}}">{{$v}}
                  @endforeach
              </div>
          </div>
          <div class="form-group ">
              <label for="ccomment" class="control-label col-lg-2">产区分布<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                  <div class="area form-control zyc" minlength="5" style="position:absolute;float: left;"></div>
                  <input class="form-control" id="area" name="area" type="hidden" value="">
                  <select  name="" id="cqfb" class="form-control" style="position:absolute;float: left;margin-left:320px">
                  @foreach($area as $k => $v)
                    <option class="from" value="">{{$v}}</option>
                  @endforeach
                  </select>
              </div>
          </div>
           <div class="form-group ">
              <label for="ccomment" class="control-label col-lg-2">品种图<span class="required">*</span></label>
              <div class="col-lg-10" style="width: 300px;">
                   <input name="image" type="file" id="fileUpload">
              </div>
              <p class="help-block">最大不超过2MB</p>
          </div>
          {{csrf_field()}}
          <div class="form-group">
              <div class="col-lg-offset-2 col-lg-10">
                  <button class="btn btn-primary" type="submit">提交</button>
                  <button class="btn btn-default" type="button">取消</button>
              </div>
          </div>
      </form>
  </div>

</div>



@endsection